<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <script src="http://code.jquery.com/jquery-latest.js"></script>
     <script type="text/javascript">
     $(document).ready(function(){
    	 if("${requestScope.mess1 }" != "" ){
    		 alert("반려자의 승인을 기다리는 중입니다.");
    		 location.href="wedding.do?command=home";
    	 }else if("${requestScope.mess2 }" != "" ){
    		 alert("관리자의 승인을 기다리는 중입니다.");
    		 location.href="wedding.do?command=home";
    	 }else if("${requestScope.deleteOk}" != ""){
    		 var mess="${requestScope.deleteOk }";
    		 alert(mess);
    		 location.href="wedding.do?command=home";
    	 }
    	  else{
    		 alert("이미 신청되었습니다!");
    		 location.href="wedding.do?command=home";
    	 }
     	
     });
     </script>